package com.study.designpattern.template;

/**
 * <p>添加类描述</p>
 *
 * @author chentao
 * @version v 0.1 2022/9/14 15:49
 */
public abstract class AbstractClass {
    //基本方法
    protected abstract void doSomething();
    //基本方法
    protected abstract void doAnything();
    public  void templateMethod(){
        /**
         * 调用基本方法完成相关逻辑
         */
        this.doAnything();
        this.doSomething();
    }
}
